﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FeatureModel.Collections.TreeArgs;
using Collections.TreeCollections;
using FeatureModelCore.FMTypes;
using EventLogAssembly;
using FeatureModelCore.FMCrossTreeConstraint;

namespace FeatureModelCore.FeatureModelEventArgs
{
    public class ConstraintCreatedEventArgs : TreeEventArgs
    {
        public TreeNodeIdentify IdentifierA { get; protected set; }
        public TreeNodeIdentify IdentifierB { get; protected set; }
        public FMCrossTreeConstraintType ConstraintType { get; protected set; }
        public TreeNodeIdentify NewConstraintID { get; protected set; }
        public CrossTreeConstraint CreatedConstraint { get; internal set; }
        public ConstraintCreatedEventArgs(FeatureModelTree tree, string info, int eventId
            , TreeNodeIdentify newConsId, TreeNodeIdentify idA, TreeNodeIdentify idB
            , FMCrossTreeConstraintType cType)
            : base(tree, info, eventId)
        {
            this.IdentifierA = idA;
            this.IdentifierB = idB;
            this.ConstraintType = cType;
            this.NewConstraintID = newConsId;
        }
    }
}
